import request from "@/sheep/request";

export default {
  //资产管理列表
  getAssteList: (params) =>
    request({
      url: "api/asset/index",
      method: "GET",
      custom: {
        auth: true,
      },
      params,
    }),
    //资产管理分类列表
    getAssetIndexList: (params) =>
    request({
      url: 'api/asset_category/index',
      method: 'GET',
      custom: {
        auth: true,
      },
      params
    }),
    //资产管理详情
    getAssteView: (params) =>
    request({
      url: 'api/asset/view',
      method: 'GET',
      custom: {
        auth: true,
      },
      params
    }),
    // 资产管理添加
    postAssteAdd: (data) =>
    request({
      url: 'api/asset/add',
      method: 'POST',
      custom: {
        auth: true,
        showSuccess: true
      },
      data
    }),
    // / 资产管理修改
    postAssteEdit: (data) =>
    request({
      url: 'api/asset/edit',
      method: 'POST',
      custom: {
        auth: true,
        showSuccess: true
      },
      data
    }),
};
